import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SwitchMapUseComponent } from './switch-map-use/switch-map-use.component';
import { ForkJoinUseComponent } from './fork-join-use/fork-join-use.component';
import { SubscriptionComponent } from './subscription/subscription.component';

const childRoutes: Routes = [
    {
        path: 'switchMap',
        component: SwitchMapUseComponent,
    },
    {
        path: 'forkJoin',
        component: ForkJoinUseComponent,
    },
    {
        path: 'subscription',
        component: SubscriptionComponent,
    },
    {
        path: '',
        pathMatch: 'full',
        redirectTo: 'switchMap',
    },
];
@NgModule({
    imports: [RouterModule.forChild(childRoutes)],
    exports: [RouterModule],
})
export class RxjsuseRoutingModule { }
